package com.zsc.shixun.model.message;

import com.zsc.shixun.entity.Message;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author ZWYZY
 * @since 2021/4/16
 */
@Service
@Mapper(componentModel = "spring")
public interface MessageMapping {
    /**
     * @param message
     * @return
     */
    MessageVo entityToVo(Message message);

    /**
     * @param messageList
     * @return
     */
    List<MessageVo> entitysToVos(List<Message> messageList);
}
